PETSC_DIR=/home/stebel/dev/petsc-3.2-p6
PETSC_ARCH=arch-linux2-c-debug-mumps
TARGET=debug

include ${PETSC_DIR}/conf/variables

CC	= gcc -m64 -march=amd64
CXX	= g++
# -m64 -march=opteron

# for release
#CXXFLAGS  = -mtune=native -ffast-math -O3 -Wall -Wno-deprecated
# for debug
CXXFLAGS = -O0 -g -Wall


BASEDIR = ${HOME}/dev

MUPARSERDIR = $(BASEDIR)/muparser_v2_2_2

VTKDIR = /usr/include/vtk-5.8

INCLUDE	= -I. \
	  -I$(MUPARSERDIR)/include \
	  -I$(VTKDIR) \
	  -I${PETSC_DIR}/include -I${PETSC_DIR}/${PETSC_ARCH}/include

#-lpetsc -lmpich -lmpl -lparmetis -lmetis -llapack -lX11

.SUFFIXES: .cpp .o
../build/%.o : %.cpp
	$(CXX) -c $(CXXFLAGS) $(INCLUDE) -o $@ $<

